<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>People at Clearleft</title>
<style type="text/css">
@import url("clearleft.css");
</style>
<script type="text/javascript" src="../scripts/jquery-2.2.4.js"></script>
<script type="text/javascript">
	$(function(){
		$("a").click(function(){
			var url = this.href;
			var args = {"time":new Date()};
			$.getJSON(url, args, function(data){
				$("#details").empty().append("<h2><a href='"+ data.person.email +"'>"+ data.person.name +"</a></h2>")
							 .append("<a href='"+ data.person.website +"'>"+ data.person.website +"</a>");
			});
			return false;
		});
	})
</script>
</head>
<body>
	<h1>People</h1>
	<ul>
		<li><a href="files/andy.json">Andy</a></li>
		<li><a href="files/richard.json">Richard</a></li>
		<li><a href="files/jeremy.json">Jeremy</a></li>
	</ul>
	<div id="details"></div>
</body>
</html>
